import request from '@/api/socialized-servce/index.js' //引入http.js
const api = request
export default {
	// 下单
	serviceOrder(params) {
		let url = 'service/service/order/start'
		return api.request(url, 'post', {
			...params
		})
	},
	// 查询农机
	queryEquip(params) {
		let url = `service/service/equipment/queryListById?idList=${params.idList}`
		return api.request(url,'get')
	},
	// 查询作物品种
	queryCropVariety(params) {
		let url = "service/plant/type/queryByCondition"
		return api.request(url,'post',{
			...params
		})
	},
	// 查询服务金额
	queryServicePrice(params) {
		let url = `service/service/objProperty/queryByCondition`
		return api.request(url,'post',{
			...params
		})
	},
	// 根据svcClassId获取动态字段
	queryPropertiesKey(svcClassId) {
		let url = `service/service/objProperty/class/${svcClassId}`
		return api.request(url,'get')
	}
}
